/**
 * @author 0283000115
 * @date 2017年9月19日-下午1:44:45
 */
package com.zte.claa.inficombo.csa.app.dao.mysql.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.zte.claa.inficombo.csa.app.model.dev.ResShadowQryPara;
import com.zte.claa.inficombo.csa.app.model.dev.ResourceShadow;

/**
 * @author 0283000115
 *
 */

@Repository
public interface ResShadowMapper {
	// 1.1 查询ResourceShadow信息, projectId必填，resid和restype可填;
	public List<ResourceShadow> queryResShadowByPara(@Param("para") ResShadowQryPara para) throws Exception;
	
	// 1.2 查询ResourceShadow信息
	public ResourceShadow queryResShadow(@Param("resId") String resId) throws Exception;

	// 1.3.1 新建ResourceShadow.
	public void addResShadow(@Param("rs") ResourceShadow rs) throws Exception;
	
	// 1.3.2 批量新建ResourceShadow.
	public void addResShadowByBatch(@Param("rss") List<ResourceShadow> rss) throws Exception;
	
	// 1.4 修改ResourceShadow.
	public int modifyResShadow(@Param("rs") ResourceShadow rs) throws Exception;

	// 1.5 删除ResourceShadow
	public int removeResShadow(@Param("resId") String resId) throws Exception;
	
	// 1.6 删除ResourceShadow
	public int removeResShadowByType(@Param("resType") String resType, @Param("projectId") String projectId) throws Exception;

}
